package com.yuexinduo.education.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.yuexinduo.education.R;
import com.yuexinduo.baselibrary.base.BaseMvpActivity;

public class CourseOneActivity extends BaseMvpActivity implements View.OnClickListener {
    private ImageView back;
    private TextView top;
    private Button next;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    protected int bindLayout() {
        return R.layout.activity_course_one;
    }

    @Override
    protected Activity getActivity() {
        return this;
    }

    @Override
    protected void initCreate() {


        back = (ImageView) findViewById(R.id.back);
        top = (TextView) findViewById(R.id.top);
        next = (Button) findViewById(R.id.next);
        top.setText("确认课程");
        back.setOnClickListener(this);
        next.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.back:
                finish();
                break;
            case R.id.next:
                startActivity(new Intent(getActivity(),CourseTwoActivity.class));
                break;
        }
    }
}